import cv2

girl = cv2.imread("../asset/girl.jpeg")
# 图片会被拉伸或压缩
# new_img = cv2.resize(girl, (400, 400))
new_img = cv2.resize(girl,None, fx=0.3, fy=0.3, interpolation=cv2.INTER_NEAREST)
#(288, 384, 3)
#(288, 384, 3)
print(new_img.shape)
while True:
    cv2.imshow('new_img', new_img)
    cv2.imshow('girl', girl)
    key = cv2.waitKey(10)
    if key & 0xFF == ord('q'):
        break

cv2.destroyAllWindows()
